home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr13
/
mmcrdt23.zip
/
MMCREDIT.DOC
< prev
Wrap
Text File
|
1993-05-31
|
12KB
|
270 lines
MMCREDIT.EXE is a program to complement the Meal Master (MM) program.
MM is an excellent, reasonably priced recipe database program. On I-LINK
and Rime Cuisine conferences it seems quite popular. It will read in MM
format recipes from saved QWK messages.
I like to know who originated the recipe, however. Typing this
information on each recipe by hand is tedious. This program will scan
through a file and add a credit line at the end of each recipe based on the
From: and Date: information in the header.
It can also be used to label recipes in a ZIP file or otherwise
extracted MM format recipe file that does not have qwk headers. In this
case, the new -l and -r parameters are used to specify what you want stated
at the bottom of the recipe. Every recipe in this case would have the same
comment on it.
Using these two functions in combination on successive runs of the
program using the output from each run as input to the next could produce
quite elaborate commentary on each recipe in the file.
The basic functionality produces a copy of your original file with this
information added. (Well, there is logic to strip headers and commentary
inserted when a recipe is continued between two messages.) If you would
like an additional file with just the modified recipe text, the new -o
option can be used to produce this in an MRmmdd.n file.
An example of the output produced by the basic functionality in version
1.00:
===========================================================================
BBS: The Data Dimension · Norcross, GA · [V.3
Date: 03-02-93 (18:45) Number: 7419
From: JOHN BLACKWELL Refer#: NONE
To: ALL Recvd: NO
Subj: Recipes #19 Conf: (42) IL-Cuisine
---------------------------------------------------------------------------
---------- Recipe via Meal-Master (tm) v7.04
Title: Mexican Fudge
Categories: Appetizers, Cheese/eggs
Servings: 1
1 lb Monterey Jack cheese with 1 cn Evaporated milk (13 oz.)
Jalapeno pepper 2 Eggs
1 lb Cheddar cheese 3 tb Flour
Grate cheese and lay in greased 9" x 13" pan. Beat milk, eggs, and
flour together, pour over cheeses. Bake 40 minutes at 350 degrees F. Cut
into squares or diamonds, serve hot or cold.
From: JOHN BLACKWELL Date: 03-02-93
-----
The information at the bottom is extracted from the message header. Using
the -l and -r options, this comment can be set to anything you want.
The program when run without parameters gives the following help
information:
version 2.00
Meal-Master recipe credit program by Rodney Grantham
This program puts author & date from QWK header
at the bottom of the Meal-Master recipe
or you can provide your own text to insert with -l & -r
Usage: MMCREDT4 infile [outfile] [-ltext] [-rtext] [-o] [-ffilename]
infile - contains recipes in Meal-Master format
outfile - where to write modified Meal-Master recipes
by default: MMmmdd.1 if none is provided
-l - add own footer for left side,e.g., -lFrom mm002.zip
-r - add own footer for right side,e.g., -rFound 4/5/93
-o - also make a file with just recipes MRmmdd.n
-f - set recipe only file name (implies -o)
-t - display titles as recipes are found
If the program is renamed, the new name will display in the help
message.
You can provide your own output file as the second parameter. If you
don't, the output file is automatically set to MMmmdd.1. mmdd
representing 2 digit month and day, of course. You may enter your own
outfile as the second parameter. If the output file exists, MMmmdd.n is
attempted until a valid output file can be created. If you provide your
own file name, a similar process is followed using your filename as the
base and dropping any extension.
A sample run:
MMCREDIT mmrecipe
Credited file in MM0406.1
Recipes saved: 5
Lines read: 375
Lines written: 385
If you use the optional parameters, the program functioning changes
slightly.
Use the '-o' or '-O' (the letter O for only) indicates you would also
like a file produced with just the modified recipes in it. This file will
be named MRmmdd.n and the processing to set the name is done like the
default output name displayed above.
You can provide a name for this file yourself by using the -F
parameter followed (immediately) by the desired name, e.g.,
-Fmyrecipe.out. If you use the -F parameter, the program assumes you mean
-O so you don't have to also enter it, but you can.
The new (version 2.30) option -t or -T displays the titles of recipes
as they are copied. By using CTRL-P to direct screen display to the
printer, you can save this list for checking against the input file to
verify no recipes were skipped. (I had accidently saved some non-MM format
recipes in my MMRECIPE file, for example.)
The '-l' or '-L' and '-r' or '-R' parameters are ways to label a zip
file or add a comment on the line after the author and date information if
you run an prior MMCREDIT output file through again. Up to 38 characters
will be used for either. Some flexibility is supported here. As long as
the total characters for both is under 76, the program will combine the
input into a credit line. If the length exceeds 76, the input will be
adjusted to fit the 76 space limit and a message showing the resulting
credit line will be displayed.
To enter just type, for example:
MMCREDIT mmrecipe -lFrom the ZIP file: MM00.zip -rOff PC101 BBS
This will add the following CREDIT line at the bottom of recipes:
From the ZIP file: MM00.zip Off PC101 BBS
If you add quotes to the -r parameter, the extra spaces will be preserved
so this input:
MMCREDIT mmrecipe -lFrom the ZIP file: MM00.zip -r"Off PC101 BBS"
produces this CREDIT line:
From the ZIP file: MM00.zip Off PC101 BBS
A sample run with the -O(nly) option to produce a file with just recipes:
MMCREDIT mmrecipe -o
Credited file in MM0406.2
Just recipes in MR0406.1
Recipes saved: 5
Lines read: 375
Lines written: 385
If you want to register and be notified of upgrades, send $5 to:
Rodney Grantham
770 Cranberry Tr.
Roswell, GA 30076
Please include the version number which displays when MMCREDIT is run
without any parameters. If there is a newer version, it will be sent to
you.
If you have suggestions send them to the same address. The current
program does what I need. But I intend to adjust it as I think of things
or people suggest new ideas to me.
I can also be contacted via RIME or I-LINK CUISINE conferences.
If you use the program and don't register, drop me a postcard anyway.
Include any comments and your name and address. I won't nag you about the
money. (Lesser amounts are acceptable if you wish to contribute but have
limited funds BTW). I'd like to track the spread and usage just out of
curiousity. At least splurge enough to blow a quarter. That's real close
to freeware.
Let me know of any problems you encounter or suggested improvements. I
use the program and so far have managed to find all kinds of things that
needed tweaking, but user input is appreciated.
I intend to keep the following BBSes provided with the latest versions
of the MMCREDIT program. This gives a fair geographical dispersion.
Sempervirens Sysop Nancy Miller Pittsburg Ca
510-432-7579
PC101 Sysop Charles Spradlin Atlanta GA
404-271-2488
(BITT) brief questionnaire
& upgrade within 24 hours usually
Canada Remote Systems via Anne MacLellan Toronto Ont
416-213-6002 and 213-6003 (paid membership)
Bits & Bytes via Anne MacLellan Toronto Ont
416-532-1784 24 hr upgrade
Art & Music Sysop James Womack Atlanta GA
404-739-1858 brief questionnaire & 1 hour access at once
*********************************************************************
/************************************************************
2.00 - also check for MMMMM as bottom marker
- write five dashes after credit line for consistency
- check ----- for no other characters occurring in line
other than blanks or hyphens
- handle continuation across qwks
- allow parameter input of comment info: left & right
- recipe only file output option
- detect Blue Wave heading format
- don't display skipped output file names
- let set recipe only output file name
- fix suffix on output files so cycles 1 to 999
- increase price to $5
*************************************************************/
/************************************************************
2.10
- check for argument with l,r,f parameters - gives message
if missing
- <continued> in zip file: "Recipe continuation is missing"
MM0302-5.zip has <continued in next recipe> in three
recipes, but no continuation. This handles this situation
smoothly
- interruption in recipe: "Unexpected end of recipe"- this
occurs for example when part of recipe including heading
is quoted at the top of a message
- restore check for input file name
************************************************************/
/************************************************************
2.20
- remove extra bottom marker: I find annoying
- handle two adjacent recipes with no end marker better
- fix line counts to be accurate
- FIRST 5 characters in line must be ----- to be end
of recipe marker (if not MMMMM type line) - problem
with some people's dividers in ingredients that MM
accepts, but I treated as bottom.
************************************************************/
/************************************************************
2.30
- Back to first 3 characters in line must be --- to be
end of recipe marker (if not MMMMM type line)
- if only 3 dashes, provide legitimate MM bottom mark
- if unexpected end to recipe, provide MM bottom mark
- modify header detection: 5 dashes at right margin and
the words meal and master in correct order with not more
than one character separating regardless of case
- added parameter -t or -T to print titles as recipes
are extracted
- fixed Blue Wave checking for end of header
************************************************************/